<div id="page-wrapper">
   <div class="row">
      <div class="col-lg-12">
         <h1 class="page-header">Cập nhật thông tin</h1>
      </div>
   <!-- /.col-lg-12 -->
   </div>
   <!-- /.row -->
   <div class="row">
      <div class="col-lg-6">
         <form class="form-horizontal" method="post" action="<?=DOMAIN?>/trang-ca-nhan/action">
            <input type="hidden" name="action" value="changeInfo" />
            <div class="control-group form-group">
               <label class="control-label" for="firstname">Họ</label>
               <div class="controls">
                  <input type="text" name="firstname" id="firstname" class="form-control" value="<?=$myuser->firstname?>" placeholder="Họ của bạn"/>
               </div>
            </div>
            <div class="control-group form-group">
               <label class="control-label" for="lastname">Tên</label>
               <div class="controls">
                  <input type="text" name="lastname" id="lastname" class="form-control" value="<?=$myuser->lastname?>" placeholder="Tên của bạn"/>
               </div>
            </div>
            <div class="control-group form-group">
               <label class="control-label" for="phone">Điện thoại</label>
               <div class="controls">
                  <input type="text" name="phone" id="phone" class="form-control" value="<?=$myuser->phone?>" placeholder="Số điện thoại"/>
               </div>
            </div>
            <div class="control-group form-group">
               <label class="control-label" for="gender">Giới tính</label>
               <div class="controls">
                  <select name="gender" id="gender" class="form-control">
                     <option <?=$myuser->gender == 1 ? 'selected="selected"' : ''?> value="1">Nam</option>
                     <option <?=$myuser->gender == 2 ? 'selected="selected"' : ''?> value="2">Nữ</option>
                     <option <?=$myuser->gender == 3 ? 'selected="selected"' : ''?> value="3">Khác</option>
                  </select>
               </div>
            </div>
            <div class="control-group form-group">
               <label class="control-label" for="birthday">Ngày sinh</label>
               <div class="controls">
                  <input type="text" name="birthday" id="birthday" class="form-control" value="<?=date('d-m-Y',$myuser->birthday)?>" />
               </div>
            </div>
            <div class="control-group form-group">
               <label class="control-label" for="contact">Địa chỉ</label>
               <div class="controls">
                  <input type="text" name="contact" id="contact" class="form-control" value="<?=$myuser->contact?>" placeholder="Địa chỉ liên hệ"/>
               </div>
            </div>
            <div class="control-group form-group">
               <div class="controls">
                  <button type="submit" class="btn btn-primary">Cập nhật</button>
                  <button type="reset" class="btn">Làm lại</button>
               </div>
            </div>
         </form>
      </div>
   </div>
   <!-- /.row -->
</div>
<!-- /#page-wrapper -->
<script>
$(function(){
	window.prettyPrint && prettyPrint();
	$('#birthday').datepicker({
		format: 'dd-mm-yyyy'
	});
})

</script>